package co.edu.unal.scrum.server.model;

import co.edu.unal.scrum.shared.model.UserHistoryStatus;

import com.google.appengine.api.datastore.Text;
import com.google.code.twig.annotation.Id;
import com.google.code.twig.annotation.Parent;
import com.google.code.twig.annotation.Type;

@SuppressWarnings("serial")
public class ProductBacklogItem implements java.io.Serializable {
	@Id
	private int id;
	@Parent
	private ProductBacklog productBacklog;
	private UserHistoryStatus status = UserHistoryStatus.NEW;
	private String name;
	@Type(Text.class)
	private String description;
	private String aceptanceCriteria;
	private Integer storyPoints;

	public ProductBacklogItem() {
	}

	public ProductBacklogItem(int id, ProductBacklog productBacklog,
			String name, String description, Integer storyPoints,String aceptanceCriteria) {
		super();
		this.id = id;
		this.productBacklog = productBacklog;
		this.name = name;
		this.description = description;
		this.storyPoints = storyPoints;
		this.aceptanceCriteria=aceptanceCriteria;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public ProductBacklog getProductBacklog() {
		return productBacklog;
	}

	public void setProductBacklog(ProductBacklog productBacklog) {
		this.productBacklog = productBacklog;
	}

	public UserHistoryStatus getStatus() {
		return status;
	}

	public void setStatus(UserHistoryStatus status) {
		this.status = status;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Integer getStoryPoints() {
		return storyPoints;
	}

	public void setStoryPoints(Integer storyPoints) {
		this.storyPoints = storyPoints;
	}

	public String getAceptanceCriteria() {
		return aceptanceCriteria;
	}

	public void setAceptanceCriteria(String aceptanceCriteria) {
		this.aceptanceCriteria = aceptanceCriteria;
	}

}
